package backend

import "blog/models"

type RoleController struct {
	baseController
}

func (r *RoleController) Index() {
	r.display()
}

func (r *RoleController) Create() {
	r.display()
}

func (r *RoleController) Edit() {
	id, _ := r.GetInt("id")
	role, _ := models.GetById(models.RoleTable(), id)
	r.Data["model"] = role
	r.display()
}
